using Microsoft.Extensions.DependencyInjection;
using WpfClient.Application.ViewModels;

namespace WpfClient.Application
{
    /// <summary>
    /// 应用层依赖注入配置
    /// </summary>
    public static class DependencyInjection
    {
        public static IServiceCollection AddApplicationServices(this IServiceCollection services)
        {
            // 注册ViewModels
            services.AddTransient<MainViewModel>();
            services.AddTransient<UserManagementViewModel>();
            
            // 注册应用层服务
            // services.AddScoped<IExampleService, ExampleService>();
            
            return services;
        }
    }
}